package org.edu.modules.center.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

@TableName("ve_teach_notice")
@ApiModel(value="ve_teach_notice对象", description="发布教学通知")
public class VeTeachNotice
        implements Serializable
{
    private static final long serialVersionUID = 1L;
    @TableId(type=IdType.AUTO)
    @ApiModelProperty("主键、自动增长")
    private Integer id;
    @ApiModelProperty("教学ID")
    private Integer tcid;
    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("内容")
    private String content;
    @ApiModelProperty("附件id")
    private Integer fileid;
    @ApiModelProperty("发布时间")
    private Integer addtime;
    @ApiModelProperty("发布人id")
    private Integer adduser;
    @ApiModelProperty("创建人姓名")
    private String username;
    @ApiModelProperty("终端ID")
    private Integer terminalid;
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public VeTeachNotice setTitle(String title)
    {
        this.title = title;return this;
    }

    public VeTeachNotice setTcid(Integer tcid)
    {
        this.tcid = tcid;return this;
    }

    public VeTeachNotice setId(Integer id)
    {
        this.id = id;return this;
    }

    public String toString()
    {
        return "VeTeachNotice(id=" + getId() + ", tcid=" + getTcid() + ", title=" + getTitle() + ", content=" + getContent() + ", fileid=" + getFileid() + ", addtime=" + getAddtime() + ", adduser=" + getAdduser() + ", username=" + getUsername() + ", terminalid=" + getTerminalid() + ", placeId=" + getPlaceId() + ")";
    }

    public VeTeachNotice setPlaceId(Integer placeId)
    {
        this.placeId = placeId;return this;
    }

    public VeTeachNotice setTerminalid(Integer terminalid)
    {
        this.terminalid = terminalid;return this;
    }

    public VeTeachNotice setUsername(String username)
    {
        this.username = username;return this;
    }

    public VeTeachNotice setAdduser(Integer adduser)
    {
        this.adduser = adduser;return this;
    }

    public VeTeachNotice setAddtime(Integer addtime)
    {
        this.addtime = addtime;return this;
    }

    public VeTeachNotice setFileid(Integer fileid)
    {
        this.fileid = fileid;return this;
    }

    public VeTeachNotice setContent(String content)
    {
        this.content = content;return this;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $id = getId();result = result * 59 + ($id == null ? 43 : $id.hashCode());Object $tcid = getTcid();result = result * 59 + ($tcid == null ? 43 : $tcid.hashCode());Object $fileid = getFileid();result = result * 59 + ($fileid == null ? 43 : $fileid.hashCode());Object $addtime = getAddtime();result = result * 59 + ($addtime == null ? 43 : $addtime.hashCode());Object $adduser = getAdduser();result = result * 59 + ($adduser == null ? 43 : $adduser.hashCode());Object $terminalid = getTerminalid();result = result * 59 + ($terminalid == null ? 43 : $terminalid.hashCode());Object $placeId = getPlaceId();result = result * 59 + ($placeId == null ? 43 : $placeId.hashCode());Object $title = getTitle();result = result * 59 + ($title == null ? 43 : $title.hashCode());Object $content = getContent();result = result * 59 + ($content == null ? 43 : $content.hashCode());Object $username = getUsername();result = result * 59 + ($username == null ? 43 : $username.hashCode());return result;
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof VeTeachNotice;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof VeTeachNotice)) {
            return false;
        }
        VeTeachNotice other = (VeTeachNotice)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
            return false;
        }
        Object this$tcid = getTcid();Object other$tcid = other.getTcid();
        if (this$tcid == null ? other$tcid != null : !this$tcid.equals(other$tcid)) {
            return false;
        }
        Object this$fileid = getFileid();Object other$fileid = other.getFileid();
        if (this$fileid == null ? other$fileid != null : !this$fileid.equals(other$fileid)) {
            return false;
        }
        Object this$addtime = getAddtime();Object other$addtime = other.getAddtime();
        if (this$addtime == null ? other$addtime != null : !this$addtime.equals(other$addtime)) {
            return false;
        }
        Object this$adduser = getAdduser();Object other$adduser = other.getAdduser();
        if (this$adduser == null ? other$adduser != null : !this$adduser.equals(other$adduser)) {
            return false;
        }
        Object this$terminalid = getTerminalid();Object other$terminalid = other.getTerminalid();
        if (this$terminalid == null ? other$terminalid != null : !this$terminalid.equals(other$terminalid)) {
            return false;
        }
        Object this$placeId = getPlaceId();Object other$placeId = other.getPlaceId();
        if (this$placeId == null ? other$placeId != null : !this$placeId.equals(other$placeId)) {
            return false;
        }
        Object this$title = getTitle();Object other$title = other.getTitle();
        if (this$title == null ? other$title != null : !this$title.equals(other$title)) {
            return false;
        }
        Object this$content = getContent();Object other$content = other.getContent();
        if (this$content == null ? other$content != null : !this$content.equals(other$content)) {
            return false;
        }
        Object this$username = getUsername();Object other$username = other.getUsername();return this$username == null ? other$username == null : this$username.equals(other$username);
    }

    public Integer getId()
    {
        return this.id;
    }

    public Integer getTcid()
    {
        return this.tcid;
    }

    public String getTitle()
    {
        return this.title;
    }

    public String getContent()
    {
        return this.content;
    }

    public Integer getFileid()
    {
        return this.fileid;
    }

    public Integer getAddtime()
    {
        return this.addtime;
    }

    public Integer getAdduser()
    {
        return this.adduser;
    }

    public String getUsername()
    {
        return this.username;
    }

    public Integer getTerminalid()
    {
        return this.terminalid;
    }

    public Integer getPlaceId()
    {
        return this.placeId;
    }
}
